package com.powernode.controller;

import com.powernode.domain.Order;
import com.powernode.feign.UserOrderFeign;
import org.springframework.web.bind.annotation.RestController;

/**
 * 本类用来演示:
 *
 * @Author 胡英俊
 * @Date 2022/7/17 23:50
 */
@RestController
public class orderController implements UserOrderFeign {
    @Override
    public Order getOrderById(Integer id) {
        System.out.println(id);
        Order order = Order.builder().name("糖醋里脊")
                .price(23.5D)
                .userId(1)
                .build();
        return order;
    }
}
